package com.lcifn.spring.ioc.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ResourceLoaderAware;
import org.springframework.core.io.ResourceLoader;


public class SampleBean implements ResourceLoaderAware{
    
    private ResourceLoader resourceLoader;
    
    @Value("#{prop['sample.prop']}")
    private String sampleProp;
    
    public void print(){
        System.out.println("I'm a sample.");
        System.out.println("prop:" + sampleProp);
    }

    public ResourceLoader getResourceLoader() {
        return resourceLoader;
    }

    public void setResourceLoader(ResourceLoader resourceLoader) {
        this.resourceLoader = resourceLoader;
    }
    
    

}
